<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BMixListView
 *
 * @author ID59C
 */
class BWBlank extends CWidget {

    //put your code here
    //format or itemViews = array(array('view'=>$view,'data'=>$data))
    public $view = null;
    //public $layout = null;
    public $data = array();
    public $htmlOptions = array('class' => 'b_widget_blank_layout');

    public function init() {
        yii::app()->bootstrap->registerCoreScripts();
        yii::app()->bootstrap->registerPopover('#testBtn', $options = array(
            'label' => 'Click me',
            'type' => 'danger',
            'htmlOptions' => array('data-title' => 'A Title', 'data-content' => 'And here\'s some amazing content. It\'s very engaging. right?', 'rel' => 'popover'),
        ));
    }

    public function run() {
        $this->renderContent();
    }

    public function renderContent() {
        echo CHtml::openTag('div', $this->htmlOptions) . "\n";
        if ($this->view != NULL)
            $this->beforeRender($this->view, $this->data);
        echo "</div>\n";
    }

}

?>
